<!--
 * @Author: 蔡霸霸
 * @Date: 2020-06-13 11:22:45
 * @LastEditors: 蔡霸霸
 * @LastEditTime: 2020-06-17 15:45:24
 * @FilePath: \Nuxt_music\layouts\error.vue
-->
<!-- error page -->
<template>
  <div>
    <h1 v-if="error.statusCode === 404">404</h1>
    <h1 v-else>500</h1>
  </div>
</template>

<script>
export default {
  // eslint-disable-next-line vue/require-prop-types
  props: ['error'],
  data() {
    return {}
  },
  mounted() {
    console.log(this.error)
  }
}
</script>

<style lang="scss" scoped></style>
